package com.zwz.resp.product;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.util.Date;
import java.util.List;

@Data
public class BiddingResponse {
    private Integer stat;
    private Integer total;

    @JsonProperty("show_total")
    private String displayTotal;

    private List<BiddingProject> data;

    @Data
    public static class BiddingProject {
        @JsonProperty("biddingId")
        private String projectId;

        @JsonProperty("biddingRegion")
        private Region region;

        @JsonProperty("cooperationTimes")
        private Integer collaborationCount;

        @JsonProperty("customName")
        private String clientName;

        @JsonProperty("biddingTitle")
        private String projectTitle;

        @JsonFormat(pattern = "yyyy-MM-dd")
        @JsonProperty("anncPubTime")
        private Date announcementDate;

        @JsonProperty("totalAmount")
        private Double contractAmount;

        @JsonProperty("customId")
        private String clientId;

        @JsonProperty("biddingProjectType")
        private String projectCategory;

        @JsonProperty("customAddress")
        private Region clientAddress;
    }

    @Data
    public static class Region {
        private String province;
        private String city;

        @JsonInclude(JsonInclude.Include.NON_NULL)
        private String district;
    }


    public Integer getStat() {
        return this.stat;
    }

    public void setStat(Integer stat) {
        this.stat = stat;
    }

    public Integer getTotal() {
        return this.total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public String getDisplayTotal() {
        return this.displayTotal;
    }

    public void setDisplayTotal(String displayTotal) {
        this.displayTotal = displayTotal;
    }

    public List<BiddingProject> getData() {
        return this.data;
    }

    public void setData(List<BiddingProject> data) {
        this.data = data;
    }


}